f29888
@@ -223,7 +223,9 @@
public final class MessageHelper {
             } else if (obj instanceof Writer) {
                 return prepend + "[Body is instance of java.io.Writer]";
             } else if (obj instanceof WrappedFile || obj instanceof File) {
-                return prepend + "[Body is file based: " + obj + "]";
+                if (!allowFiles) {
+                    return prepend + "[Body is file based: " + obj + "]";
+                }
             }
         }
 
